import {createApp} from 'vue'
import App from './App.vue'

import './assets/main.css'
import Lesson2_0 from "@/components/Lesson2_0.vue";
import Layout from "@/goods/Layout.vue";


createApp(Layout)
    .component("GlobalComponent", Lesson2_0)
    .provide('globl', 'Xerxes')
    .provide('currentUser1', {
        name: "Alex",
        role: ["admin"],
    })
    .provide('currentUser2', {
        name: "Leo",
        role: ['user'],
    })
    .provide('roleList', {
        admin: ['create', 'delete', 'update', 'query'],
        user: ['query'],
    })
    .mount('#app')

